package com.example.personal.entity;

/**
 * Created on 2022/3/9.
 *
 * @author taodq
 */
public enum HttpStatusEnum {

    SUCCESS(0, "成功"),
    FAIL(-1, "失败"),
    USER_ALREADY_EXISTS_ERROR(10001, "用户已存在"),
    PARAM_CURRENT_PAGE_ERROR(10002, "当前页参数错误"),
    PARAM_SIZE_PAGE_ERROR(10003, "一页大小参数错误");

    private int code;
    private String msg;

    HttpStatusEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}

